package cn.dliyy.warehouse.dao;

import java.io.Serializable;
import java.util.List;

public interface EntityDao {
	public List<Object> createQuery(final String queryString);

	public List<Object> createQuery(final String queryString, final int start, final int length);

	public Object save(final Object model);

	public void update(final Object model);

	public void delete(final Object model);

	public Object get(final Class<?> clazz, final String primaryKey);

	public Object get(final Class<?> clazz, final Serializable id);
	
	public Object get(final Class<?> clazz, final Object o);
}
